from flask_migrate import MigrateCommand
from flask_script import Manager,Server

from App import create_app

# App __init__.py
app = create_app()

manager = Manager(app=app)
manager.add_command('db', MigrateCommand)
manager.add_command('runserver', Server(host='0.0.0.0'))
if __name__ == '__main__':
    manager.run()
